package com.pinla.util;

import org.springframework.context.ApplicationContext;

/**
 * SpringContextUtil
 * @author zhujj
 * @since 2010-08-30
 */
public class SpringContextUtil {
	
	private static  ApplicationContext  springAppContext;
	
	
	 public static Object getBean(String beanName){
		 return springAppContext.getBean(beanName);
	 }
	 
	public  static void setContext(ApplicationContext springAppContext){
		 SpringContextUtil.springAppContext = springAppContext;		 
	 }
}
